import request from '@/utils/request'
// 通用上传接口
export function fileUpload(data) {
  return request({
    url: '/v1/resourceFile/upload',
    method: 'post',
    data
  })
}

//  下载接口
export function fileDownload(fileId) {
  return request({
    url: `/v1/resourceFile/download/${fileId}`,
    method: 'get',
    responseType:'blob'
  })
}

